let api = 'http://uat-service-mediaedit-service:8142/mediaProcess_uat/'
if(process.env.ServerApp === 'prod'){
  api = 'http://prod-service-mediaedit-service:8126/mediaProcess/'
}
import axios from 'axios'

export class WsMediaEdit {

  /**
   * 更新关注红点
   * @param wx_user 
   * @param data 
   * @returns 
   */
  batchShareCoverAndUpload(url: string){
    return new Promise((resolve, reject) => {
      axios.post(api + 'batchShareCoverAndUpload', {url: url}).then((res) => {
        if(res.status === 200){
          resolve(res.data)
        }else{
          reject(res.statusText)
        }
      }).catch(err => {
        reject(err)
      })
    })
  }

}
